//
//  SelectedAddress.h
//  HappyStore
//
//  Created by 点点充 on 16/1/22.
//  Copyright © 2016年 LLJ. All rights reserved.
//

#import <UIKit/UIKit.h>
#define PROVINCE_COMPONENT  0
#define CITY_COMPONENT      1
#define DISTRICT_COMPONENT  2

//选择下拉框，后传值
@protocol selectedAddressDelegate <NSObject>

- (void)seceltedRowSshowMsg:(NSString *)showMsg andProvince:(NSString *)strProvince andCity:(NSString *)strCity andDistrict:(NSString *)strDistrict;

@end

@interface SelectedAddress : UIView <UIPickerViewDataSource,UIPickerViewDelegate>

@property (nonatomic, weak) id<selectedAddressDelegate> delegatee;

@property(nonatomic, strong) NSDictionary *areaDic;
@property(nonatomic, strong) NSArray *province;
@property(nonatomic, strong) NSArray *city;
@property(nonatomic, strong) NSArray *district;
@property(nonatomic, strong) UIPickerView *picker;
@property(nonatomic, strong) UIButton *buttonOK;
@property(nonatomic, strong) NSString *selectedProvince;
@property(nonatomic, strong) NSString *provinceStr;
@property(nonatomic, strong) NSString *cityStr;
@property(nonatomic, strong) NSString *districtStr;


+ (SelectedAddress *)sharedSelectedAddress;

- (void)btnClickAddress;

@end
